#include<iostream>
using namespace std;

enum 
{
    NOMAL,
    DEBUG,
    WARMING,
    ERROR,
    FATAL
};

#define LOG(LEVEL) log(#LEVEL,__FILE__,__LINE__)

std::ostream& log(std::string level,std::string file_name,int file_line)
{
    std::string message;
    message += "[";
    message += level;
    message += "]";

    message += "[";
    message += file_name;
    message += "]";

    message += "[";
    message += to_string(file_line);
    message += "]";

    message += "[";
    message += to_string(time(nullptr));
    message += "]";

    cout << message <<" ";
    return cout;
}

